//
//  DFButton.m
//  DFTextField
//
//  Created by 如佳 陈 on 15/8/17.
//  Copyright (c) 2015年 crj. All rights reserved.
//

#import "DFButton.h"

@implementation DFButton

- (instancetype)init{
    if (self = [super init]) {
        [self initialize];
    }
    return self;
}

- (id)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super initWithCoder:aDecoder]) {
        [self initialize];
    }
    return self;
}

- (void)initialize{
}

- (void)setCornerRadius:(CGFloat)cornerRadius{
    _cornerRadius = cornerRadius;
    self.layer.cornerRadius = _cornerRadius;
    self.clipsToBounds = YES;
}

@end
